// extern crate crypto; //← 整个库都导入
use crypto::digest::Digest;
use crypto::sha3::Sha3;

fn main() {
  let mut hasher = Sha3::sha3_256();
  hasher.input_str("Hello world!");
  let result = hasher.result_str();
  println!("{}", result); //d6ea8f9a1f22e1298e5a9506bd066f23cc56001f5d36582344a628649df53ae8
}
